//
//  NSURLTest.m
//  iOS Sample Code
//
//  Created by lei yu on 11-12-9.
//  Copyright (c) 2011年 lancet. All rights reserved.
//

#import "NSURLTest.h"

@implementation NSURLTest

// All code under test must be linked into the Unit Test bundle
- (void)testReadURLContents
{
    NSAutoreleasePool * pool = [[NSAutoreleasePool alloc] init];
    NSURL *myURL = [NSURL URLWithString: @"http://classroomM.com"];
    NSString *myHomePage = [NSString stringWithContentsOfURL: myURL encoding: NSASCIIStringEncoding error: NULL];
    NSLog(@"%@", myHomePage);
    [pool drain];
}

@end
